package file;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        String path="";
        Test io=new Test();
        io.creatfile();
//        new FileInputStream();
// 读文件内容
        FileInputStream fileInputStream=new FileInputStream(path);//给出路径
//        int i=-1;
//        while((i=FileInputStream.read()));{
//            System.out.println(i);
//        }
    }
    //创建文件
    public  void creatfile() throws  IOException {
        File file=new File(File.pathSeparator);//添加路径
        if(!file.exists()){
            file.mkdirs();
        }
        File myfile=new File(File.pathSeparator);
        boolean newfile=myfile.createNewFile();
        System.out.println(newfile);

    }


}
